package com.aaa.three.util;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;

/**
 * @PACKAGE_NAME: com.aaa.three.util
 * @NAME: ArraysDate
 * @USER: Tprairie
 * @DATE: 2022/2/19
 * @PROJECT_NAME: three
 */
public class ArraysDate {
    public static ArrayList query(){
        ArrayList<Object> arrs = new ArrayList<>();
        for (int i = 0; i < 7; i++) {
            SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
            Calendar c = Calendar.getInstance();
            c.setTime(new Date());
            c.add(Calendar.DATE,+i);
            Date d = c.getTime();
            String day = simpleDateFormat.format(d);
            arrs.add(day);
        }
        return arrs;
    }
}
